package com.example.myapplicationtest;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;

public class regist extends AppCompatActivity {
    AlertDialog dialog2;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.register);

        dialog2 =new AlertDialog.Builder(this).setTitle("信息提示框")
                .setMessage("注册成功")
                .setIcon(R.mipmap.qq)
                .create();

    }
    public void click4(View v)
    {    AlertDialog  dialog3 =new AlertDialog.Builder(this).setTitle("信息提示框")
            .setMessage("注册成功")
            .setIcon(R.mipmap.qq)
            .create();
        dialog3.show();
    }
}
